package com.ruoyi.equipment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.equipment.mapper.EquipmentTypeMapper;
import com.ruoyi.equipment.domain.EquipmentType;
import com.ruoyi.equipment.service.IEquipmentTypeService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-14
 */
@Service
public class EquipmentTypeServiceImpl implements IEquipmentTypeService 
{
    @Autowired
    private EquipmentTypeMapper equipmentTypeMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public EquipmentType selectEquipmentTypeById(Long id)
    {
        return equipmentTypeMapper.selectEquipmentTypeById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param equipmentType 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<EquipmentType> selectEquipmentTypeList(EquipmentType equipmentType)
    {
        return equipmentTypeMapper.selectEquipmentTypeList(equipmentType);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param equipmentType 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEquipmentType(EquipmentType equipmentType)
    {
        return equipmentTypeMapper.insertEquipmentType(equipmentType);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param equipmentType 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEquipmentType(EquipmentType equipmentType)
    {
        return equipmentTypeMapper.updateEquipmentType(equipmentType);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentTypeByIds(Long[] ids)
    {
        return equipmentTypeMapper.deleteEquipmentTypeByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentTypeById(Long id)
    {
        return equipmentTypeMapper.deleteEquipmentTypeById(id);
    }
}
